﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace demo3
{
    class Program
    {
        static void Main(string[] args)
        {
            UDisk u1 = new UDisk("金士顿888G");
            MobileHardDisk m1 = new MobileHardDisk("三星888G");

            u1.info();
            u1.read();
            u1.write();

            Console.WriteLine();

            m1.info();
            m1.read();
            m1.write();

            Console.WriteLine();

            Computer c1 = new Computer("惠普");
            c1.Start();
            c1.Usb1 = u1;
            c1.Usb2 = m1;
            c1.WriteData();
            c1.ReadData();
            c1.End();
        }
    }
}
